﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.Domain;
using YYSite.Common.Logging;
using YYSite.Domain.System.UserPermissions;

namespace YYSite.Application.System.UserPermissions
{
    public class UserPermissionService : ApplicationService,IUserPermissionService
    {
        public UserPermissionService(ILogger logger,IUserPermissionRepository userPermissionRepository):base(logger)
        {
            UserPermissionRepository = userPermissionRepository;
        }

        protected IUserPermissionRepository UserPermissionRepository { get; }


        public DataGridOutput<UserPermission> GetUserPermissionByPage(GetUserPermissionDataGridInput input)
        {
            return this.UserPermissionRepository.GetUserPermissionByPage(input);
        }
    }
}


